<? if(!defined('IN_FANWE')) exit('Access Denied'); ?>
<?php 
$css_list[0]['url'][] = './tpl/css/zone.css';
$js_list[0] = './tpl/js/zone.js';
    $js_list[1] = './tpl/js/im_006.js';
 include template('inc/header'); ?><div id="body" class="fm990">
<div id="content">
        	
            <div id="zhimeisheetbar">
            	<p class="bar-links">
                	<span class="selected"><?=$home_user['albums']?> 杂志</span>
                    &nbsp;·&nbsp;
                    <a href="<?php echo FU('u/talk',array("uid"=>$home_uid)); ?>"><?=$home_user['shares']?> 采集</a>
                    &nbsp;·&nbsp;
                    <a href="<?php echo FU('u/fav',array("uid"=>$home_uid)); ?>"><?=$home_user['favs']?> 喜欢</a>
             	</p>
          	</div>
            
            <div id="contentMain"><? include template('inc/u/u_menu'); ?>                <!--预加载杂志社数据-->
            
            <? if($_FANWE['request']['action'] == 'album') { ?>
            <? if(is_array($album_list)) { foreach($album_list as $list) { ?>           
            <div class="mbox">
            	<div class="followlist">
                	<h3 class="mboxTitle">
                    	<? if($list['img_count'] > 0) { ?><span class="number floatright">(<?=$list['img_count']?>)</span><? } ?>
                        <span class="t" title="<?=$list['title']?>"><?=$list['title']?></span>
                    </h3>
                    <div class="list">
                       <ul>
                            <?php $j = 1; ?>                            <?php $list_img_counts = array(0,0,0,0,0,0,0,0,0); ?>                            <? if(is_array($list_img_counts)) { foreach($list_img_counts as $imgkey => $imgindex) { ?>                            <?php $img = $list['album_imgs'][$imgkey]; ?><?php $img_animate = $list['album_imgs_animate'][$imgkey]; ?>                            <? if(!empty($img)) { ?>
                                <li style="*width:60px; *margin-bottom:5px;"><a target="_blank" href="<?=$list['url']?>">
                                	<? if($img_animate) { ?>
<img src="<?=$img?>" width="60" height="60" />
<? } else { ?>
<img src="<?php echo getImgName($img,60,60,1); ?>" width="60" height="60" />
<? } ?>
</a></li>
                            <? } else { ?>

                            <li style="*margin-bottom:5px; *width:60px;"><a target="_blank" class="add_img" href="<?=$list['url']?>"><img src="./tpl/images/no-img.gif" width="60" height="60"/></a></li>
                            
<? } ?>
                            <? if($j % 3 != 0) { ?>
                            <li><span></span></li>
                            <? } ?>
                            <?php $j++; ?>                            <? } } ?>
                        </ul>                     	
                    </div>
                   	<div class="follow">
                        <a href="javascript:;" <? if($list['isMe'] == $_FANWE['uid']) { ?>onclick="$.Edit_Album(<?=$list['id']?>)" <? } else { ?>onclick="$.Follow_Album(<?=$list['id']?>,this)"<? } ?> class="btn btn13 wbtn unfollow">
                            <strong>
                            <? if($list['isMe'] == 1) { ?>
                                编辑
                            <? } elseif($list['is_follow_album']) { ?>
                                取消关注
                            <? } else { ?>
                                关注
                            <? } ?>
                            </strong><span></span>
               		 	</a>
                    </div>
                 </div>
            </div>
            <? } } ?>
            <? } ?>
            
            <!--预加载用户数据-->
            </div>
<div id="imloading" class="firstload" style="display:none;"><img src="./tpl/images/loading-footer.gif" /><span>加载中…</span></div>
<div id="firstload" class="firstload" style="display:none;"><img src="./tpl/images/end.png" /> </div>
</div>
</div>
</div>
<script>
jQuery(function($){

var linkUrl = '<?=$link_url?>',jsonUrl = '<?=$json_url?>';
linkUrl = linkUrl +"&v=" +Math.random()*99999999;
autoLayout_album.init({
contentID:"contentMain",
rightLoad:true,
leftID:["leftLabel"],
rightID:"",
linkUrl:linkUrl,
pageAuto: true,
loadingID:"imloading"
});
autoLayout_album.eachAction(jsonUrl);
});

</script><? include template('inc/footer'); ?>